package com.major.mytomcat.servlet;

import com.major.mytomcat.Request;
import com.major.mytomcat.Response;

public interface Servlet {

    /**
     * 初始化
     */
    void init();

    /**
     * 处理请求的服务
     * @param request
     * @param response
     */
    void service(Request request, Response response);

    /**
     * 销毁
     */
    void destroy();
}
